package com.xcjh.opencv.rule.zhen;

import com.xcjh.opencv.emuns.MatchImage;
import com.xcjh.opencv.rule.BaseRule;
import org.springframework.stereotype.Component;

import java.awt.*;

/**
 * @author 规则1
 */
@Component
public class Zhen implements BaseRule {


    @Override
    public String getRuleName() {
        return "真";
    }

    @Override
    public void run(Robot robot) throws Exception {
        //点击事件
//        exeRule(robot,"对缘打招呼.txt");
        //如果找的到查找图片,那么就点击. 并且执行
        if(findAndClickPic(MatchImage.查找,robot)){
            exeRule(robot,"zhen2.txt");
        }

    }
}
